package com.gking.processHarvest.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 聊天记录
 */
@Data
public class ChatHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    //发送者id
    private  String masterId;

    //接收者id
    private  String receiverId;

    //消息
    private  String message;

    //消息类型
    private String type;

    //是否发送阅读了
    private Integer isRead;

    //是否删除了
    private Integer isDelete;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //删除时间
    private LocalDateTime deleteTime;

}
